package com.htu.service.Impl;

import com.htu.mapper.UserMapper;
import com.htu.po.User;
import com.htu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public User getUserById(String userId) {
       return userMapper.getUserById(userId);
    }

    public int saveUser(User user) {
        return userMapper.saveUser(user);
    }

    public User getUserByIdByPass(String userId, String password) {

      return userMapper.getUserByIdByPass(userId,password);
    }
}
